package com.wxzz.elearing.user.service.openfeign;

import com.wxzz.elearing.user.service.openfeign.sentinel.EvaluationApiFeignImpl;
import com.wxzz.elearning.common.vo.ReturnVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "2124-wxzzlearn-evaluation-application",fallback = EvaluationApiFeignImpl.class)
public interface IEvaluationApiFeign {

    @RequestMapping(value = "/evaluation-api/selectBusinessCategoryById/{businessCategoryId}", method = RequestMethod.POST)
    ReturnVO<String> selectBusinessCategoryById(@PathVariable(value = "businessCategoryId") Long businessCategoryId);

    /**
     * 查询用户最高的星级认证星级
     *
     * @param wxUserId
     * @return
     */
    @RequestMapping(value = "/businessCategory-rule-api/selectWxUserStart/{wxUserId}", method = RequestMethod.POST)
    Integer selectWxUserStart(@PathVariable Long wxUserId);
}
